package indi.lddsdu.spider.conponent;

import org.springframework.stereotype.Component;
import us.codecraft.webmagic.Request;
import us.codecraft.webmagic.scheduler.QueueScheduler;

import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

/**
 * Created by jack on 18/6/6.
 */
@Component
public class ViewScheduler extends QueueScheduler{
    protected BlockingQueue<Request> queue = new LinkedBlockingQueue<Request>();

    public BlockingQueue<Request> getQueue() {
        return queue;
    }
}
